@import url("./base.css");
@import url("./footer.css");

body {
  // padding-bottom: 30px;
}

/*幻灯片start*/
.slider {
  display: block;
  height: 200px;
  position: relative;
  // width: 100%;
}
@media screen and (min-width: 914px) {
  .slider {
    height: 310px;
  }
}

.slider img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 复制swiper css样式 */

.swiper-container {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}

.swiper-container img {
  max-height: 100%;
  object-fit: cover;
  overflow: hidden;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: transparent;
  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.swiper-pagination-bullet {
  background: #FF2D55 !important;
}

/*幻灯片end*/

/* 顶部广告 */
.ad {
  position: relative;
  color: #9f9fA0;
  height: 48px;
  line-height: 48px;
  text-align: right;
  background-color: #444;
  background-color: #fff;
  position: relative;
}

.ad a {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.ad .close {
  position: absolute;
  right: 5px;
  top: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background-image: url(../icons/close.svg);
  background-repeat: no-repeat;
  background-position: center center;
}

.nav {
  line-height: 48px;
  background: rgba(255, 255, 255, 1.0);
  border-top: .1px dashed #ccc;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  // background: linear-gradient(0deg,hsla(0,0%,93.3%,0),hsla(0,0%,93.3%,.87) 40%,#eee 60%,#eee);
}

.nav ul {}

.nav ul {
  display: flex;
  justify-content: space-around;
}

.nav ul li {
  min-width: 48px;
  // margin-right: 20px;
}

.nav ul li::after {
  content: '';
  display: inline-block;
  width: 18.4px;
  height: 18.4px;
  margin-left: 0.125rem;
  vertical-align: text-bottom;
  background-image: url(../icons/arrow-black.svg);
  // background-color: #f40;
  background-size: 100%;
  background-position: 0 0;
}

.nav ul li a {
  color: #f5f5f7;
  color: rgba(0, 0, 0, 0.8);
}

.main-nav {
  display: grid;
  width: cal(100%-10px);
  min-height: 50px;
  background-color: #fafafa;
  padding-bottom: 30px;
}

ul.grid {
  display: grid;
  text-align: center;
  justify-content: center;
  grid-template-columns: repeat(3, 30%);
  // 列重复3次，行不需要重复
  // grid-template-rows: repeat(3, 33.33%);
}

.grid li {
  display: flex;
  justify-content: center;
  align-items: center;
  // text-overflow: ellipsis显示为省略标记 如果是 clip：为裁切
  text-overflow: clip;
  white-space: nowrap;
  overflow: hidden;
  padding: 12px 12px;
  border-radius: 4px;
  margin-right: 0.3125rem;
  margin-bottom: 0.3125rem;
  color: #fff;
  background-color: lightgreen;
  // background: var(--bg-color-7);
  // box-shadow: var(--box-shadow-4);

  // box-shadow: var(--box-shadow-6);
  // background: var(--bg-color-4);
}

ul.grid li {
  background: var(--red);
}

ul.grid li {
  background: var(--orange);
}

ul.grid li {
  background: var(--green);
}

ul.grid li {
  background: var(--blue);
}

ul.grid li {
  background: var(--avocado);
}

ul.grid li {
  background: var(--blue);
}

ul.grid li {
  background: var(--blue);
}

ul.grid li {
  background: var(--blue);
}

ul.grid li {
  background: var(--blue);
}

ul.grid li {
  background: var(--blue);
}

// 圆角
.grid li:nth-child(1) {
  // border-top-left-radius: 15px;
}

.grid li:nth-child(3) {
  // border-top-right-radius: 15px;
}

// 清除最后一列的右边距
.grid li:nth-child(3n) {
  margin-right: 0;
}

.grid li a {
  text-overflow: clip;
  white-space: nowrap;
  overflow: hidden;
  color: #fff;
  text-align: center;
}